<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/2
 * Time: 9:04
 */

namespace app\admin\controller;


use think\Controller;
use think\Request;
use think\Session;

class Common extends Controller
{
    public function __construct(Request $request = null)
    {
        parent::__construct($request);

        if (!session::has('username')){
            $this->redirect('login/login');
        }

    }
}